"""
   author: 陈亚敏
   data: 2021/11/21  10:25
   project: 1
"""
dict1={}
with open('Walden.txt','r',encoding="utf-8") as fp:
    str1=str(fp.readlines()).lower().split()
    # print(str1)
    # list1=list(str1)
    for j in str1:
        if j not in dict1:
            dict1[j] = 1
        else:
            dict1[j] += 1

a=(sorted(dict1.items(),key=lambda x: x[1]))

for i in range(1,11):
    print(a[-i], "\n")
